<?php
require_once ('Model/DataBase/mysql.inc.php');
abstract class basicmodule {
	protected $mysql;
	public function __construct () {
		$this->mysql = new mysql ();
		$this->mysql->connect ('localhost', 'root', 'cybersys');
		$this->mysql->select_db ('hotel');
		$this->mysql->query ('SET CHARACTER SET utf8;');
		$this->mysql->query ('SET NAMES utf8;');
#		header ('Content-Type: text/xml');
		ini_set ('date.timezone', 'Asia/Hong_Kong');
	}

	public function __destruct () {
		$this->mysql->close ();
	}
}
?>